package cn.itcast.nems.studentrecord.dao.mapper;

import cn.itcast.nems.studentrecord.dao.entity.StudentRecordDiscount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学籍优惠表 Mapper 接口
 * </p>
 *
 * @author liyong
 * @since 2023-11-14
 */
@Mapper
public interface StudentRecordDiscountMapper extends BaseMapper<StudentRecordDiscount> {

    /**
     * 删除学籍关联的优惠
     *
     * @param studentRecordId 学籍ID
     */
    void deleteByStudentRecordId(@Param("studentRecordId") String studentRecordId, @Param("deletedBy")String deletedBy);

    List<StudentRecordDiscount> findListByRecordId(@Param("recordId") String recordId) ;
}
